import axios from "../utils/index";
//   获取评论信息
export const getcomments = (id, params) => {
  return axios({
    method: "get",
    url: `/api/getcomments/${id}`,
    params,
  });
};

//   提交评论信息
export const postcomment = (id, data) => {
  return axios({
    method: "post",
    url: `/api/postcomment/${id}`,
    data: data,
  });
};
